﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="UserActivity.aspx.vb" Inherits="prototype.UserActivity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style1
    {
        font-size: x-large;
        color: #3366CC;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
</p>
<p class="style1">
    <strong>Most Recent User Activity :</strong></p>
<p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
        GridLines="None" Height="234px" Width="585px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="CTitle" HeaderText="Player " 
                SortExpression="CTitle" />
            <asp:BoundField DataField="Ctext" HeaderText="User Comments" 
                SortExpression="Ctext" />
            <asp:BoundField DataField="UserID" HeaderText="User " SortExpression="UserID" />
            <asp:BoundField DataField="AddedDate" HeaderText="Added Date" 
                SortExpression="AddedDate" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PlayersConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:PlayersConnectionString.ProviderName %>" 
        SelectCommand="SELECT [CTitle], [Ctext], [UserID], [AddedDate] FROM [Comments] ORDER BY [AddedDate] DESC">
    </asp:SqlDataSource>
</p>
<p>
</p>
</asp:Content>
